//一般情况下，我们的一个组件都会有两个
//一个是 index.js 用来写 js 和 html 代码
//另外一个就是 style.js 主要使用 styleComponents 来写组件的样式
import styled from "styled-components";


export const HeaderWrapper=styled.div`
  width: 100%;
  height: 75px;
  background-color: #242424;
  .content{
    display: flex;
    width: 1100px;
    height: 70px;
    margin: 0 auto;
    overflow: hidden;
  }
  .divider{
    background-color: #c20c0c;
    height: calc(100% - 70px);
  }
`

export const AppHeaderLeft=styled.div`
  display: flex;
  width: 900px;
  height: 100%;
  .logo{
    display: block;
    width: 176px;
    height: 100%;
    background-image: url("https://oss.yhuayi.com/wangyiyun/image/topbar.png");
    background-repeat: no-repeat;
    background-size: 146%;
    background-position: 0 0 ;
  }
  .navlink{
    height: 100%;
    flex: 1;
    line-height: 70px;
    font-size: 15px;
    text-align: center;
    color: #fff;
  }
  .navlink:hover{
    //background-image: url("https://oss.yhuayi.com/wangyiyun/image/topbar.png");
    background-color: #000;
    //background-size: 400%;
    //background-position: right 17px bottom 240px;
    //background-position: 0 0;
  }
  
  .active{
    background-color: #000;
    //background-image: url("https://oss.yhuayi.com/wangyiyun/image/topbar.png");
    //background-repeat: no-repeat;
    //background-size: 350%;
    //background-position: right 30px bottom -100px;
  }
`
export const AppHeaderRight=styled.div`
  position: relative;
  display: flex;
  height: 100%;
  flex: 1;
  .homeHead_search{
    position: relative;
    display: flex;
    width: 158px;
    height: 32px;
    background-color: white;
    margin-left: 110px;
    margin-top: 19px;
    border-radius: 32px;
    overflow: hidden;
  }
  .homeHead_search_logo{
    height: 90%;
    flex: 1;
    background-image: url("https://oss.yhuayi.com/wangyiyun/image/topbar.png");
    background-position: -5px 142px;
    background-size: 300px;
  }
  .srch{
    flex: 4;
    line-height: 16px;
    color: #333333;
    outline: none;
    width: 100px;
    height: 100%;
    font-size: 12px;
    border: 0;
  }
  .homeHead_chuangzuo{
    width: 90px;
    height: 32px;
    margin: 19px 0 0 12px;
    line-height: 30px;
    font-size: 12px;
    text-align: center;
    border-radius: 20px;
    border: 1px solid #4F4F4F;
    color: #cccccc;
    cursor: pointer;
  }
  .homeHead_chuangzuo:hover{
    color: #ffffff;
    text-decoration: none;
    border: 1px solid #cccccc;
  }
  .homeHead_login{
    width: 28px;
    height: 32px;
    margin: 19px 0 0 12px;
    font-size: 13px;
    line-height: 30px;
  }
  .homeHead_login a{
    color: #787878;
  }
  .homeHead_login a:hover{
    color: #ffffff;
    text-decoration: underline;/*设置下划线*/
  }
`

